/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('fUserRealInfo', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
      field: 'id'
    },
    realName: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'real_name'
    },
    phone: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'phone'
    },
    verificationCode: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'verification_code'
    },
    idNumber: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'id_number'
    },
    idNegative: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'id_negative'
    },
    idPositive: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'id_positive'
    },
    userId: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      field: 'user_id'
    }
  }, {
    tableName: 'f_user_real_info'
  });
};
